
<template>
  <div class="home">
    <el-container>
      <el-header>
        <HomeHeader></HomeHeader>
      </el-header>
      <el-container>
        <aside-view :list="list"></aside-view>
        <!-- <el-aside width="200px">
          <router-link tag="p" to="/home/xtgl">系统概览</router-link>
          <router-link tag="p" to="/home/dengji">设备登记</router-link>
          <router-link tag="p" to="/home/guanli">设备管理</router-link>
          <router-link tag="p" to="/home/shuju">数据字典</router-link>
        </el-aside> -->
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import AsideView from "./components/AsideView.vue";
import HomeHeader from "./components/HomeHeader.vue";
export default {
  components: { HomeHeader, AsideView },
  name: "HomeView",
  data() {
    return {
      list: [],
    };
  },
  created() {
    this.list = this.$router.getRoutes().filter((v) => v.meta.isShow);
    // console.log(this.$router.getRoutes().filter((v) => v.meta.isShow));
  },
};
</script >
<style scoped lang="less">
.home {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.el-header {
  background-color: #0b7dc5;
  color: #fff;
  font-size: 20px;
  line-height: 60px;
  display: flex;
  justify-content: space-between;
  padding-right: 30px;
  box-sizing: border-box;
}

.el-main {
  width: 100%;
  height: 100%;
  // border: 1px solid red;
  background-color: #e9eef300;
  color: #333;
  font-size: 20px;
  font-weight: bold;
  padding: 0;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container {
  width: 100vw;
  height: 100vh;
}
.active {
  color: rgb(0, 17, 255);
}
</style>